import request from "@/utils/request.js";


export function payMember(code,levelId) {
	return request.post(`vip/toBeVip?code=${code}&levelId=${levelId}`, {}, {
		noAuth: true
	});
}

export function memberList() {
	return request.get(`vip-level/getAllVipLevels`, {}, {
		noAuth: true
	});
}

export function memberDetail() {
	return request.get(`vip/query-user-vip`, {}, {
		noAuth: true
	});
}

export function memberOrder() {
	return request.get(`vip/getOrderInfoByUserId`, {}, {
		noAuth: true
	});
}


export function memberRefund(orderNo) {
	return request.post(`vip/vip-refund/${orderNo}`, {}, {
		noAuth: true
	});
}